Skip to content

Binary Drawer Replacement#90

Merged
SoloByte merged 18 commits intomainfrom
removing-binary-drawer
Sep 3, 2025
Merged

Binary Drawer Replacement#90
SoloByte merged 18 commits intomainfrom
removing-binary-drawer

Conversation

@SoloByte
Copy link
Collaborator

@SoloByte SoloByte commented Sep 1, 2025

BinaryDrawer class was removed in favor of the new BitmapFont and BitmapFontAtlas classes. The new classes are more powerful, less complex, more performant and the name makes it easier to understand what they are supposed to do.

@SoloByte SoloByte added this to the 5.0 milestone Sep 1, 2025
@SoloByte SoloByte self-assigned this Sep 1, 2025
@SoloByte SoloByte requested a review from Copilot September 1, 2025 15:20

This comment was marked as outdated.

Refactor: drawCell actions now have bool indicating if current rect is filled ('1' in the data string) or not.
Feat: Filter and Copy methods added.
@SoloByte SoloByte requested a review from Copilot September 2, 2025 16:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR replaces the BinaryDrawer class with new BitmapFont and BitmapFontAtlas classes, providing more powerful, performant, and clearly named font rendering functionality. The new implementation offers better maintainability and more intuitive API design.

Key Changes

  • Removed BinaryDrawer class and replaced it with BitmapFont and BitmapFontAtlas classes
  • Added comprehensive bitmap font rendering capabilities with multiple font sizes (3x5, 5x7, 8x8)
  • Implemented font atlas generation for optimized texture-based rendering

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
BitmapFontStatic.cs Defines static default bitmap fonts with character mappings for different sizes
BitmapFontAtlas.cs Implements texture atlas generation and rendering for bitmap fonts
BitmapFont.cs Core bitmap font class with character grid rendering capabilities
BinaryDrawer.cs Removed legacy binary drawer implementation
Rect.cs Added ToString() method for debugging support

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Refactor: GenerateSourceRectangle xml summary for details added.
@SoloByte SoloByte merged commit 3fd8955 into main Sep 3, 2025
7 checks passed
@SoloByte SoloByte deleted the removing-binary-drawer branch September 3, 2025 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants